package cn.com.cmbc.dao;

import cn.com.cmbc.utils.FileUtil;
import lombok.Data;

@Data
public class KafkaDAO {
    private String name;
    private String lastModifiedTime;
    private String type;
    private String suffix;
    private String size;
    private String absolutePath;
    private String rowkeyId;

    public KafkaDAO(String name, long lastModifiedTime, String type, String suffix, long size, String absolutePath, String rowkeyId)
    {
    	this.name = name;
    	this.lastModifiedTime = FileUtil.convertTimestampToDateTime(lastModifiedTime);
    	this.type = type;
    	this.suffix = suffix;
    	this.size = FileUtil.convertBytesToKB(size);
    	this.absolutePath = absolutePath;
    	this.rowkeyId = rowkeyId;
    }

}
